package modelo;

import java.io.Serializable;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQueries( { @NamedQuery(name = "Sucursal.findAll", query = "select o from Sucursal o") })
@Table(name = "\"sucursal\"")
public class Sucursal implements Serializable {
    @Column(name = "cer")
    private byte[] cer;
    @Column(name = "clave")
    private String clave;
    @Column(name = "iddomicilio")
    private long iddomicilio;
    @Id
    @Column(name = "idsucursal", nullable = false)
    private long idsucursal;
    @Column(name = "keyc")
    private byte[] keyc;
    @Column(name = "razonsocial")
    private String razonsocial;
    @Column(name = "rfce")
    private String rfce;
    @Column(name = "rfcs")
    private String rfcs;
    @Column(name = "tipo", nullable = false)
    private BigDecimal tipo;

    public Sucursal() {
    }

    public Sucursal(String clave, long iddomicilio, long idsucursal, String razonsocial, String rfce, String rfcs,
                    BigDecimal tipo) {
        this.clave = clave;
        this.iddomicilio = iddomicilio;
        this.idsucursal = idsucursal;
        this.razonsocial = razonsocial;
        this.rfce = rfce;
        this.rfcs = rfcs;
        this.tipo = tipo;
    }

    public byte[] getCer() {
        return cer;
    }

    public void setCer(byte[] cer) {
        this.cer = cer;
    }

    public String getClave() {
        return clave;
    }

    public void setClave(String clave) {
        this.clave = clave;
    }

    public long getIddomicilio() {
        return iddomicilio;
    }

    public void setIddomicilio(long iddomicilio) {
        this.iddomicilio = iddomicilio;
    }

    public long getIdsucursal() {
        return idsucursal;
    }

    public void setIdsucursal(long idsucursal) {
        this.idsucursal = idsucursal;
    }

    public byte[] getKeyc() {
        return keyc;
    }

    public void setKeyc(byte[] keyc) {
        this.keyc = keyc;
    }

    public String getRazonsocial() {
        return razonsocial;
    }

    public void setRazonsocial(String razonsocial) {
        this.razonsocial = razonsocial;
    }

    public String getRfce() {
        return rfce;
    }

    public void setRfce(String rfce) {
        this.rfce = rfce;
    }

    public String getRfcs() {
        return rfcs;
    }

    public void setRfcs(String rfcs) {
        this.rfcs = rfcs;
    }

    public BigDecimal getTipo() {
        return tipo;
    }

    public void setTipo(BigDecimal tipo) {
        this.tipo = tipo;
    }
}
